import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux'
import './index.css';
import App from './components/App/App';
import {AppContainer} from 'react-hot-loader';
import store from './redux/store'
import registerServiceWorker from './config/registerServiceWorker';
import {BrowserRouter as Router} from 'react-router-dom';

ReactDOM.render(
<Provider store={store}>
  <Router>
    <App/>
  </Router>
</Provider>,

document.getElementById('root')
);

if (module.hot) {
  module.hot.accept()
}
registerServiceWorker();
